const settingModel = require("./schema/settingSchema")

// 查询全局设置
module.exports.findSettingDao = async function(){
    return await settingModel.findOne();
}

// 修改全局设置
module.exports.updateSettingDao = async function(newSettingInfo){
    await settingModel.updateMany(newSettingInfo)
    return await settingModel.findOne();
}